﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Forms/FormAdmin.master" AutoEventWireup="true" CodeBehind="SubstitutionForm.aspx.cs" Inherits="HRdex_Final.Forms.WebForm7" %>
<%@ Register assembly="EO.Web" namespace="EO.Web" tagprefix="eo" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>           
      
   <table  id="presentLoad" 
            style="border-style: double; border-color: #0066FF; background-color: #FFFFFF">
 
        <tr>
            <td colspan="4">
                <%--Substitution Form--%><span style="font-size: xx-large">Substitution Form</span></td> 
        </tr>
        <tr>
        <td hidden="hidden">Substitution ID</td>
        <td hidden="hidden">
            <asp:TextBox ID="txtSubID" runat="server" Width="166px"></asp:TextBox>
        </td>
        <td colspan="2" hidden="hidden">&nbsp;</td>
        </tr>
        <tr>
        <td><%--Name--%>Employee Name<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="txtName" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        <td>
            <asp:TextBox ID="txtName" runat="server" Width="166px"></asp:TextBox>
        </td>
        <td>Status/Rank<asp:RequiredFieldValidator ID="RequiredFieldValidator10" 
                runat="server" ControlToValidate="txtRank" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        <td>
            <asp:TextBox ID="txtRank" runat="server" Width="166px"></asp:TextBox>
        </td>
        </tr>
        <tr>
        <td>Department<asp:RequiredFieldValidator ID="RequiredFieldValidator4" 
                runat="server" ControlToValidate="ddlDept" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        <td>
            <asp:DropDownList ID="ddlDept" runat="server" DataSourceID="dept" 
                DataTextField="DepartmentName" DataValueField="DeptID" Height="20px" 
                Width="172px">
            </asp:DropDownList>
            <asp:SqlDataSource ID="dept" runat="server" 
                ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                SelectCommand="SELECT [DeptID], [DepartmentName] FROM [catDepartment]">
            </asp:SqlDataSource>
        </td>
        <td>College<asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                ControlToValidate="ddlCollege" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        <td>
            <asp:DropDownList ID="ddlCollege" runat="server" DataSourceID="collge" 
                DataTextField="CollegeName" DataValueField="CollegeID" Height="20px" 
                Width="172px">
            </asp:DropDownList>
            <asp:SqlDataSource ID="collge" runat="server" 
                ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                SelectCommand="SELECT * FROM [catCollege]"></asp:SqlDataSource>
        </td>
        </tr>
    <tr>
        <td>Present Load Assignment<asp:RequiredFieldValidator ID="RequiredFieldValidator5" 
                runat="server" ControlToValidate="txtPresentLoad" ErrorMessage="*" 
                ForeColor="Red"></asp:RequiredFieldValidator>
        </td>
        <td>
            <asp:TextBox ID="txtPresentLoad" runat="server" Width="166px"></asp:TextBox>
            <asp:FilteredTextBoxExtender ID="txtPresentLoad_FilteredTextBoxExtender" 
                runat="server" Enabled="True" FilterType="Numbers" 
                TargetControlID="txtPresentLoad" ValidChars="1234567890">
            </asp:FilteredTextBoxExtender>
        </td>
        <td>Paying Hour</td>
        <td>
            <asp:TextBox ID="txtPayingHour" runat="server" Width="166px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>Faculty Substituted<asp:RequiredFieldValidator ID="RequiredFieldValidator6" 
                runat="server" ControlToValidate="ddlFac" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
        </td>
        <td colspan="3">
            <asp:DropDownList ID="ddlFac" runat="server" Height="16px" Width="441px" 
                DataSourceID="faculty" DataTextField="Name" DataValueField="EmployeeID">
            </asp:DropDownList>
            <asp:SqlDataSource ID="faculty" runat="server" 
                ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                SelectCommand="SELECT EmployeeID, LastName + ', ' + FirstName + ', ' + MiddleName AS Name FROM formEmployees">
            </asp:SqlDataSource>
        </td>
    </tr>
       <tr>
        <td colspan="4">Date Substituted</td>
        </tr>
       <tr>
        <td>From<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                ControlToValidate="txtFromSub" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
           </td>
        <td colspan="3">
            <asp:TextBox ID="txtFromSub" runat="server"></asp:TextBox>
                    <asp:CalendarExtender ID="txtFromSub_CalendarExtender" runat="server" 
                        Enabled="True" TargetControlID="txtFromSub">
                    </asp:CalendarExtender>
        </td>
        </tr>
       <tr>
        <td>To<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                ControlToValidate="txtToSub" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
           </td>
        <td colspan="3">
            <asp:TextBox ID="txtToSub" runat="server"></asp:TextBox>
                    <asp:CalendarExtender ID="txtToSub_CalendarExtender" runat="server" 
                        Enabled="True" TargetControlID="txtToSub">
                    </asp:CalendarExtender>
        </td>
        </tr>
    <tr>
        <td>No of Days:<asp:RequiredFieldValidator ID="RequiredFieldValidator9" 
                runat="server" ControlToValidate="txtTotalDays" ErrorMessage="*" 
                ForeColor="Red"></asp:RequiredFieldValidator>
        </td>
        <td colspan="3">
            <asp:TextBox ID="txtTotalDays" runat="server"></asp:TextBox>
        </td>
    </tr>
   </table >
   <table id="Schedule">
        <tr>
            <td style="width: 73px">Code<asp:RequiredFieldValidator 
                    ID="RequiredFieldValidator13" runat="server" ControlToValidate="txtcode" 
                    ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>Section<asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" 
                    ControlToValidate="txtSection" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>Time</td>
            <td style="width: 166px">Day/s</td>
        </tr>
        <tr>
            <td style="width: 73px">
                <asp:TextBox ID="txtcode" runat="server" Width="71px" MaxLength="5"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtSection" runat="server" Width="244px" 
                    style="margin-left: 0px" MaxLength="5"></asp:TextBox>
                <asp:FilteredTextBoxExtender ID="txtSection_FilteredTextBoxExtender" 
                    runat="server" Enabled="True" FilterType="Numbers" TargetControlID="txtSection" 
                    ValidChars="1234567890">
                </asp:FilteredTextBoxExtender>
            </td>
            <td>
                <asp:DropDownList ID="ddlsThour" runat="server">
                    <asp:ListItem Value="1"></asp:ListItem>
                    <asp:ListItem Value="2"></asp:ListItem>
                    <asp:ListItem Value="3"></asp:ListItem>
                    <asp:ListItem Value="4"></asp:ListItem>
                    <asp:ListItem Value="5"></asp:ListItem>
                    <asp:ListItem Value="6"></asp:ListItem>
                    <asp:ListItem Value="7"></asp:ListItem>
                    <asp:ListItem Value="8"></asp:ListItem>
                    <asp:ListItem Value="9"></asp:ListItem>
                    <asp:ListItem Value="10"></asp:ListItem>
                    <asp:ListItem Value="11"></asp:ListItem>
                    <asp:ListItem Value="12"></asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="ddlstMin" runat="server">
                <asp:ListItem Value="00"></asp:ListItem>
                    <asp:ListItem Value="05"></asp:ListItem>
                    <asp:ListItem Value="10"></asp:ListItem>
                    <asp:ListItem Value="15"></asp:ListItem>
                    <asp:ListItem Value="20"></asp:ListItem>
                    <asp:ListItem Value="25"></asp:ListItem>
                    <asp:ListItem Value="30"></asp:ListItem>
                    <asp:ListItem Value="35"></asp:ListItem>
                    <asp:ListItem Value="40"></asp:ListItem>
                    <asp:ListItem Value="45"></asp:ListItem>
                    <asp:ListItem Value="50"></asp:ListItem>
                    <asp:ListItem Value="55"></asp:ListItem>
                    
                </asp:DropDownList>
            <asp:Label ID="lblDash" runat="server" Text="-"></asp:Label>
                <asp:DropDownList ID="ddlsThour0" runat="server">
                    <asp:ListItem Value="1"></asp:ListItem>
                    <asp:ListItem Value="2"></asp:ListItem>
                    <asp:ListItem Value="3"></asp:ListItem>
                    <asp:ListItem Value="4"></asp:ListItem>
                    <asp:ListItem Value="5"></asp:ListItem>
                    <asp:ListItem Value="6"></asp:ListItem>
                    <asp:ListItem Value="7"></asp:ListItem>
                    <asp:ListItem Value="8"></asp:ListItem>
                    <asp:ListItem Value="9"></asp:ListItem>
                    <asp:ListItem Value="10"></asp:ListItem>
                    <asp:ListItem Value="11"></asp:ListItem>
                    <asp:ListItem Value="12"></asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="ddlstMin0" runat="server">
                <asp:ListItem Value="00"></asp:ListItem>
                    <asp:ListItem Value="05"></asp:ListItem>
                    <asp:ListItem Value="10"></asp:ListItem>
                    <asp:ListItem Value="15"></asp:ListItem>
                    <asp:ListItem Value="20"></asp:ListItem>
                    <asp:ListItem Value="25"></asp:ListItem>
                    <asp:ListItem Value="30"></asp:ListItem>
                    <asp:ListItem Value="35"></asp:ListItem>
                    <asp:ListItem Value="40"></asp:ListItem>
                    <asp:ListItem Value="45"></asp:ListItem>
                    <asp:ListItem Value="50"></asp:ListItem>
                    <asp:ListItem Value="55"></asp:ListItem>
                    
                </asp:DropDownList>
            <asp:TextBox ID="txtTime" runat="server"></asp:TextBox>
            </td>
            <td style="width: 166px">
                <asp:DropDownList ID="ddlDays" runat="server">
                    <asp:ListItem>MWF</asp:ListItem>
                    <asp:ListItem>TTH</asp:ListItem>
                    <asp:ListItem>M</asp:ListItem>
                    <asp:ListItem>T</asp:ListItem>
                    <asp:ListItem>W</asp:ListItem>
                    <asp:ListItem>TH</asp:ListItem>
                    <asp:ListItem>F</asp:ListItem>
                </asp:DropDownList>
            <asp:TextBox ID="txtDays" runat="server" Height="22px" Width="137px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 73px">Room<asp:RequiredFieldValidator 
                    ID="RequiredFieldValidator16" runat="server" ControlToValidate="txtRoom" 
                    ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>Subject<asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" 
                    ControlToValidate="txtSubject" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>Units Lec</td>
            <td style="width: 166px">Units Lab</td>
        </tr>
        <tr>
            <td style="width: 73px">
                <asp:TextBox ID="txtRoom" runat="server" Width="68px"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtSubject" runat="server" Width="243px"></asp:TextBox>
            </td>
            <td>
                <asp:DropDownList ID="ddlUnitLec" runat="server">
                    <asp:ListItem Value="0"></asp:ListItem>
                <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                </asp:DropDownList>
            <asp:TextBox ID="txtUnitLec" runat="server"></asp:TextBox>
            </td>
            <td style="width: 166px">
                <asp:DropDownList ID="ddlLab" runat="server">
                    <asp:ListItem>0</asp:ListItem>
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                </asp:DropDownList>
            <asp:TextBox ID="txtUnitLab" runat="server" Height="22px" Width="121px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:Label ID="lblConfirmationMessage" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan = "4">
                   <div>
    <asp:Button ID="btnSave" runat="server" Text="Send" onclick="btnSave_Click" />
    </div>
            </td>
        </tr>
        </table>

        <table id="approval">
            <tr>
        <td>
            <asp:Label ID="lblHeadApproval" runat="server" Text="Head/Chairperson Approval"></asp:Label>
        </td>
        <td>
            <asp:DropDownList ID="ddlApprovalHead" runat="server" 
                DataTextField="Status" DataValueField="ApprovalIDDean">
                 <asp:ListItem></asp:ListItem>
                <asp:ListItem Value="Denied">Denied</asp:ListItem>
                <asp:ListItem Value="Approved">Approved</asp:ListItem>
            </asp:DropDownList>
            <asp:TextBox ID="txtAppHeadsub" runat="server"></asp:TextBox>
        </td>
            </tr>
    <tr>
        <td>
            <asp:Label ID="lblDeanDirector" runat="server" Text="Dean/Director Approval"></asp:Label>
        </td>

        <td>
            <asp:DropDownList ID="ddlApprovalDean" runat="server">
                <asp:ListItem></asp:ListItem>
                <asp:ListItem Value="Denied">Denied</asp:ListItem>
                <asp:ListItem Value="Approved">Approved</asp:ListItem>
            </asp:DropDownList>
            <asp:TextBox ID="txtAppDeansub" runat="server"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblHRApproval" runat="server" Text="HR Approval"></asp:Label>
        </td>
        <td>
            <asp:DropDownList ID="ddlApprovalHR" runat="server">
                 <asp:ListItem></asp:ListItem>
                <asp:ListItem Value="Denied">Denied</asp:ListItem>
                <asp:ListItem Value="Approved">Approved</asp:ListItem>
            </asp:DropDownList>
            <asp:TextBox ID="txtAppHRsub" runat="server"></asp:TextBox>
        </td>
    </tr>     
    </table>
</div>


</asp:Content>
